<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\BaseController;
use think\facade\Request;
use think\facade\View;
use think\facade\Db;

class brand{
    public function brand_list()
    {
        //接值
        $keywords = Request::get('keywords');
        $ifhow=Request::get('if_show');
        $logo=Request::get('logo');
        //自定义数组
        $data=[
            'brand_name'=>$keywords,
            'if_show'=>$ifhow,
            'brand_logo'=>$logo,
        ];
        //调用模型类
        $rt=\app\admin\model\Brand::getBrandList($data,input('get.'));

        View::assign('arr',$rt);
        View::assign('keyword',$keywords);
        View::assign('ifshow',$ifhow);
        View::assign('logo',$logo);
        return View::fetch();
    }
}